import cgi
import datetime
import urllib
import webapp2

import jinja2
import os

dir = os.path.dirname(__file__)
filename = os.path.join(dir, '../view')
jinja_environment = jinja2.Environment(loader=jinja2.FileSystemLoader(filename))

from google.appengine.ext import db

from model.Matching import Matching

class Time(webapp2.RequestHandler):
    def get(self):

        matching_query = Matching.all()
        matching = matching_query.fetch(1)

        self.response.out.write(str(matching[0].timeToClose())+"\n")
        #template = jinja_environment.get_template('list.html')
        #self.response.out.write(template.render(template_values))
